﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace Gin.Controls
{
    public class UserInputOpenFileDialog: UserInputBrowse
    {
        protected override void OnBrowseButtonClick(object sender, EventArgs e)
        {
            OpenFileDialog dialog = new OpenFileDialog();
            DialogResult dlgResult = dialog.ShowDialog();
            if (dlgResult == DialogResult.OK)
            {
                CurrentValue = dialog.FileName;
            }
        }
    }
}
